home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / windowwatcher / nsINonBlockingAlertService.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  114 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsINonBlockingAlertService.idl
  3.  */
  4.  
  5. #ifndef __gen_nsINonBlockingAlertService_h__
  6. #define __gen_nsINonBlockingAlertService_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDOMWindow; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsINonBlockingAlertService */
  21. #define NS_INONBLOCKINGALERTSERVICE_IID_STR "e800ef97-ae37-46b7-a46c-31fbe79657ea"
  22.  
  23. #define NS_INONBLOCKINGALERTSERVICE_IID \
  24.   {0xe800ef97, 0xae37, 0x46b7, \
  25.     { 0xa4, 0x6c, 0x31, 0xfb, 0xe7, 0x96, 0x57, 0xea }}
  26.  
  27. /**
  28.  * This is the interface to the embeddable non-blocking alert
  29.  * service.  A non-blocking alert is a less serious informative alert
  30.  * that does not need to block the program's execution to get the
  31.  * user's response.
  32.  *
  33.  * The way to present the alert is left to the implementations.  It
  34.  * may be a dialog separate from the parent window, or a window-modal
  35.  * sheet (as the ones in Mac OS X) attached to the parent.
  36.  */
  37. class NS_NO_VTABLE nsINonBlockingAlertService : public nsISupports {
  38.  public: 
  39.  
  40.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_INONBLOCKINGALERTSERVICE_IID)
  41.  
  42.   /**
  43.    * This shows a non-blocking alert with the specified title and
  44.    * message text. This function requires a valid parent window with
  45.    * which the alert is associated.
  46.    *
  47.    * @param aParent
  48.    *        The parent window. This must not be null.
  49.    * @param aDialogTitle
  50.    *        Text to appear in the title of the alert.
  51.    * @param aText
  52.    *        Text to appear in the body of the alert.
  53.    */
  54.   /* void showNonBlockingAlert (in nsIDOMWindow aParent, in wstring aDialogTitle, in wstring aText); */
  55.   NS_IMETHOD ShowNonBlockingAlert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle, const PRUnichar *aText) = 0;
  56.  
  57. };
  58.  
  59. /* Use this macro when declaring classes that implement this interface. */
  60. #define NS_DECL_NSINONBLOCKINGALERTSERVICE \
  61.   NS_IMETHOD ShowNonBlockingAlert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle, const PRUnichar *aText); 
  62.  
  63. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  64. #define NS_FORWARD_NSINONBLOCKINGALERTSERVICE(_to) \
  65.   NS_IMETHOD ShowNonBlockingAlert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle, const PRUnichar *aText) { return _to ShowNonBlockingAlert(aParent, aDialogTitle, aText); } 
  66.  
  67. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  68. #define NS_FORWARD_SAFE_NSINONBLOCKINGALERTSERVICE(_to) \
  69.   NS_IMETHOD ShowNonBlockingAlert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle, const PRUnichar *aText) { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowNonBlockingAlert(aParent, aDialogTitle, aText); } 
  70.  
  71. #if 0
  72. /* Use the code below as a template for the implementation class for this interface. */
  73.  
  74. /* Header file */
  75. class nsNonBlockingAlertService : public nsINonBlockingAlertService
  76. {
  77. public:
  78.   NS_DECL_ISUPPORTS
  79.   NS_DECL_NSINONBLOCKINGALERTSERVICE
  80.  
  81.   nsNonBlockingAlertService();
  82.  
  83. private:
  84.   ~nsNonBlockingAlertService();
  85.  
  86. protected:
  87.   /* additional members */
  88. };
  89.  
  90. /* Implementation file */
  91. NS_IMPL_ISUPPORTS1(nsNonBlockingAlertService, nsINonBlockingAlertService)
  92.  
  93. nsNonBlockingAlertService::nsNonBlockingAlertService()
  94. {
  95.   /* member initializers and constructor code */
  96. }
  97.  
  98. nsNonBlockingAlertService::~nsNonBlockingAlertService()
  99. {
  100.   /* destructor code */
  101. }
  102.  
  103. /* void showNonBlockingAlert (in nsIDOMWindow aParent, in wstring aDialogTitle, in wstring aText); */
  104. NS_IMETHODIMP nsNonBlockingAlertService::ShowNonBlockingAlert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle, const PRUnichar *aText)
  105. {
  106.     return NS_ERROR_NOT_IMPLEMENTED;
  107. }
  108.  
  109. /* End of implementation class template. */
  110. #endif
  111.  
  112.  
  113. #endif /* __gen_nsINonBlockingAlertService_h__ */
  114.